import {createStore,combineReducers,applyMiddleware} from "redux"
import logger from "redux-logger"
import thunk from "redux-thunk"
import {composeWithDevTools} from "redux-devtools-extension"
//引入
import login from "./modules/login"
import register from "./modules/register"
import index from "./modules/index"
import home from "./modules/home"
let rootReducer=combineReducers({
    //模块
    login,
    register,
    index,
    home
  
})


let store=createStore(rootReducer,composeWithDevTools(applyMiddleware(thunk)))

export default store